<html ng-app>
<head>
<script type="text/javascript" src="../../angular/angular.js"></script>
<script type="text/javascript" src="../../angular/angular-route.js"></script>
<script type="text/javascript" src="./controllers.js"></script>
</head>
<body ng-controller='AddUserController'>

	<h1>Sing Up</h1>



	<form name='addUserForm'>

		<div ng-show='message'>{{message}}</div>

		<div>
			First Name: <input ng-model='user.first' required>
		</div>
		<div>
			Last Name: <input ng-model='user.last' required>
		</div>

		<div>
			Email: <input type='email' ng-model='user.email' required>
		</div>

		<div>
			Age: <input type='number' ng-model='user.age' ng-maxlength='3'
				ng-minlength='1'>
		</div>

		<div>
			<button ng-click='addUser()' >Submit</button>
		</div>
	</form>



</body>

</html>